package io.xxx.xbutler.web.controller.form;

import io.xxx.xbutler.domain.Store;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class RobotBindStoreForm {

    private String robotId;

    private Long storeId;

    private String storeCode;

    private String storeName;

    private Integer storeAreaId;

    private String storeAreaName;

    private Integer storeOperateAreaId;

    private String storeOperateAreaName;

    public Store toStore() {
        return new Store()
                .setId(storeId)
                .setCode(storeCode)
                .setName(storeName)
                .setAreaId(storeAreaId)
                .setAreaName(storeAreaName)
                .setOperateAreaId(storeOperateAreaId)
                .setOperateAreaName(storeOperateAreaName);
    }
}
